package cn.tedu.task2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Tree {
    private int height = 300;
    @Autowired
    private Leaf leaf;

    @Override
    public String toString() {
        return "Tree{" +
                "height=" + height +
                ", leaf=" + leaf +
                '}';
    }
}
